Run installed-tests as autopkgtests (similar to #908440)
authorSimon McVittie <smcv@debian.org>
Fri, 14 Sep 2018 08:24:50 +0000 (09:24 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 14 Sep 2018 08:24:50 +0000 (09:24 +0100)
Mark them as flaky for now.

debian/changelog
debian/tests/control
debian/tests/installed-tests [new file with mode: 0755]

index a2ae01e1f8236ff7397dd1500f4890d563256382..e4ab0ca5b182207318d87a30d211463a32af2622 100644 (file)
@@ -28,6 +28,8 @@ gtk+4.0 (3.92.1-2) UNRELEASED; urgency=medium
     - Install them in gtk-4-examples for now to avoid the NEW queue
     - d/p/reftests-Fix-path-to-installed-tests-in-.test-metadata.patch:
       Add patch to fix .test metadata
+  * Run installed-tests as autopkgtests (similar to #908440)
+    - Mark them as flaky for now
 
  -- Jeremy Bicha <jbicha@debian.org>  Fri, 19 Jan 2018 22:05:35 -0500
 
index 436aafa2274e2a2f07130ebe039796fa2fe7bbbf..b3ce4ba592284091864e08f64f3e3cbd1dc0343e 100644 (file)
@@ -1,2 +1,6 @@
 Tests: build python3-gi
 Depends: libgtk-4-dev, build-essential, xauth, xvfb, python3-gi, gir1.2-gtk-4.0, dbus
+
+Tests: installed-tests
+Depends: at-spi2-core, dbus (>= 1.8), gnome-desktop-testing (>= 2018.1-1~), gtk-4-examples, xauth, xvfb
+Restrictions: allow-stderr, flaky
diff --git a/debian/tests/installed-tests b/debian/tests/installed-tests
new file mode 100755 (executable)
index 0000000..43f32ef
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+# autopkgtest check: Run the installed-tests to verify GTK+ works correctly
+# Based on glib2.0's d/tests/installed-tests, (C) 2013 Canonical Ltd.
+
+set -e
+
+# Disable gvfs if it happens to be installed. We want to test the built-in
+# stuff
+export GIO_USE_VFS=local
+export GIO_USE_VOLUME_MONITOR=unix
+
+export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
+
+exec dbus-run-session -- \
+xvfb-run -a \
+gnome-desktop-testing-runner \
+--report-directory="$AUTOPKGTEST_ARTIFACTS" \
+--tap \
+gtk-4.0